package com.demo.di.simple;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/10/11 15:12
 */
@Service
public class SimpleValue {
	@Value("#{values.name}")
	private String name;
	@Value("#{values.age + 1}")
	private Integer age;
	@Value("#{values.money}")
	private long money;
	@Value("#{values.married}")
	private boolean married;

	@Override
	public String toString() {
		return "SimpleValue{" +
				"name='" + name + '\'' +
				", age=" + age +
				", money=" + money +
				", married=" + married +
				'}';
	}
}
